package org.despair2D.ui.supportClasses 
{
	import org.despair2D.ui.ButtonType;
	
	import org.despair2D.core.ns_despair;
	use namespace ns_despair;
	
public class MovieClipButtonProp 
{
	
	final ns_despair function get press()   : int { return 3 }
	final ns_despair function get release() : int { return 1 }
	final ns_despair function get invalid() : int { return 4 }
	final ns_despair function get leave()   : int { return (effectType & ButtonType.PRESS_PRESS) ? 3 : 1 }
	final ns_despair function get hover()   : int { return (effectType & (ButtonType.PRESS_PRESS | ButtonType.LEAVE_PRESS)) ? 3 : 1 }
	
	
	final ns_despair function initialize( movieClipRef:Class, hasInvalid:Boolean) : void
	{
		this.movieClipRef = movieClipRef
		this.hasInvalid = hasInvalid
	}
	
	
	ns_despair var movieClipRef:Class
	
	ns_despair var effectType:int
	
	ns_despair var hasInvalid:Boolean
}
}